package com.study.entity;  


/**  
 *  实体类
 */  
public class User  
{  
    /********** 实体的属性 ***********/  
     //主键 自增
    private int id;
    private String username;  //用户名
    private String password;  //密码
    private String sex;  //性别
    private String phone;  //联系电话
    private String email;  //邮箱
    /********** 构造方法 ***********/  
    public User() {  
      
    }  
  
    public User(String username, String password, String sex, String phone, String email) {  
        this.username = username;  
        this.password = password;  
        this.sex = sex;  
        this.phone = phone;  
        this.email = email;  
    }  
  
    /********** get/set 方法 ***********/  
    
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getUsername() {  
        return username;  
    }  
  
    public void setUsername(String username) {  
        this.username = username;  
    }
    
      
    public String getPassword() {  
        return password;  
    }  
  
    public void setPassword(String password) {  
        this.password = password;  
    }
    
      
    public String getSex() {  
        return sex;  
    }  
  
    public void setSex(String sex) {  
        this.sex = sex;  
    }
    
      
    public String getPhone() {  
        return phone;  
    }  
  
    public void setPhone(String phone) {  
        this.phone = phone;  
    }
    
      
    public String getEmail() {  
        return email;  
    }  
  
    public void setEmail(String email) {  
        this.email = email;  
    }
    
      

	@Override
	public String toString() {
		return "User [id=" + id 
				+ ", username=" + username
				+ ", password=" + password
				+ ", sex=" + sex
				+ ", phone=" + phone
				+ ", email=" + email
				+ "]";
    }
}